// Config.js
const version = '1.2.14';

const userSource = 18;

const domain = {
    requestDomain: 'https://zuijia365.com',
    socketDomain: 'wss://zuijia365.com',
    uploadFileDomain: 'https://zuijia365.com',
    downloadFileDomain: 'https://zuijia365.com'
};

const service = {
    /**用户登录接口 */
    userLogin: '/todayHot/user/userLogin.json',

    /**创建用户 */
    saveUser: '/todayHot/user/saveIfNotExists.json',


    /**文件上传 */
    uploadFile: '/todayHot/userResource/uploadUserResource.json',

    /**获取用户信息 */
    userInfo: '/todayHot/user/queryById.json',

    /**分类接口 */
    queryIndexCategory: '/todayHot/wxApplet/category/queryIndexCategorys.json',

    /*保存用户信息*/
    saveWxUserInfo: '/todayHot/wxApplet/user/saveWxUserInfo.json',

    /*获取审核状态*/
    getWxAuditStatus: '/todayHot/wxApplet/version/getWxAuditStatus.json',

    /*更新用户信息*/
    updateUser: '/todayHot/wxApplet/user/updateUser.json',

    /*formId 收集*/
    saveFormId: '/todayHot/wxApplet/message/saveTempMsg.json',

    /*查询商品信息列表*/
    queryProducts: '/todayHot/wxApplet/product/queryProducts.json',

    /*根据ISBN号查询图书接口*/
    queryBookByIsbn: '/todayHot/wxApplet/product/queryBookByIsbn.json',

    /*发布图书商品*/
    publishProductBooks: '/todayHot/wxApplet/product/publishProductBooks.json',

    /*新增收货地址*/
    addDeliveryAddress: '/todayHot/wxApplet/address/addDeliveryAddress.json',

    /*查询我的默认收货地址*/
    queryMyDefaultAddress: '/todayHot/wxApplet/address/queryMyDefaultAddress.json',

    /*查询我的默认收货地址*/
    getPageDesc: '/todayHot/wxApplet/common/getPageDesc.json',

    /*查询我的积分账户余额接口*/
    queryMyPointAccount: '/todayHot/wxApplet/point/queryMyPointAccount.json',

    /*赚积分接口*/
    makePoint: '/todayHot/wxApplet/point/makePoint.json',

    /*积分规则页接口*/
    queryPointRule: '/todayHot/wxApplet/point/queryPointRule.json',

    /*分页查询我的积分记录接口*/
    queryMyPointDetails: '/todayHot/wxApplet/point/queryMyPointDetails.json',


};

const storage = {
    keyUserInfo: 'key_user_info',
    keyCategories: 'key_categories',
    keySystemInfo: 'key_system_info',
    keySessionId: 'key_session_id',
    keyLikeIdList: 'key_like_id_list',
    keyImageLikeIdList: 'key_image_like_id_list',
    keyLoginCode: 'key_login_js_code',
    keyBookInfos: 'key_book_info',
    keyShareCode: 'key_share_code',
    keyAttendanceTime: 'key_attendance_time',
    keyShareDesc: 'key_share_desc'
};

const businessSource = {
    attendance: 1002
};

module.exports = {
    version: version,
    domain: domain,
    service: service,
    storage: storage,
    userSource: userSource,
    businessSource: businessSource
};